package com.tb.mapper;

import com.tb.pojo.Teacher;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface TeacherMapper {


    int getTotal();

    List<Teacher> findAll();

    /*先入user 再入teacher*/
    void addTea(Teacher teacher);

    Teacher findByTid(@Param("tid") String tid,@Param("email") String email);

    void deleteOne(String tid);

    void refresh();

    void updateOne(Teacher teacher);

    List<Teacher> findAllCondition(@Param("college") int college, @Param("title") int title);
}
